class Animal:
    type = "动物的类型"
    __color = "白色"

    def __init__(self,ethnic,name,gender,color):
        self.ethnic = ethnic
        self.__name = name
        self.gender = gender
        self.__color = color

    def toString(self):
        print("这是一只{}，它叫{}，是一只{}的{}的小{}".format(self.ethnic,self.__name,self.gender,self.__color,self.ethnic))

    def __speak(self):
        print("动物会叫会说话！！！")

    def interface_demo(self):
        self.__speak()

    def introduce(self):
        print("我是一只动物")

    @classmethod
    def eat(cls):
        # print(cls.name)
        cls.type = "动物的种类类型"
        print(cls.type,"，动物要吃饭")


    @staticmethod
    def sleep():
        print("动物要睡觉。。")


    def fun(self,name,speak,habit):
        print("我是一只动物，我叫{},我这样叫：{}，我喜欢吃{}".format(name,speak,habit))